function count = calculateDists( cities, Costs, cost2Find )
n = length(cities);
count = 0;
for i = 1:n
    if i == n 
       cost = Costs(cities(i),cities(1));
    else
       cost = Costs(cities(i),cities(i+1)); 
    end
    if cost == cost2Find
        count = count +1;
    end
end



end

